import React from "react";
import {Flex} from "weaver-mobile";
import PropTypes from "prop-types";

/**
 * 列表子项
 * jiansong 2019/11/8
 */

/**
 * @param label 展示标签
 * @param value 标签值
 */
const WrListCardItem = ({label, value}) => {
   return <Flex className="workrelate-listcard-item-detail">
        <Flex.Item className="flex-label">{label}：</Flex.Item>
        <Flex.Item style={{flex: 7.5}}>{value}</Flex.Item>
    </Flex>
}

WrListCardItem.propTypes = {
    label: PropTypes.string,
    value: PropTypes.node,
}
export default WrListCardItem;